import { Singleton } from '../../framework/common/Singleton';
import {
    MonsterID,
    MonsterCreator,
} from '../entity/monster/creator/monsterCreator';
import type { MonsterType } from '../entity/monster/MonsterType';

export class MonsterMgr extends Singleton<MonsterMgr>() {
    private _monsterMap: Map<string, MonsterType> = new Map();
    private _monsterCreator: MonsterCreator = MonsterCreator.instance;
    public start(): void {
        const num = 50
        for (let i = 0; i < num; i++) {
            const ran = Math.random()*Math.PI*2
            
            this._monsterCreator.createByID(
                MonsterID.Scarecrow,
                1,
                new GameVector3(
                    128-Math.sin(ran)*70,
                    50,
                    128-Math.cos(ran)*70
                )
            );
        }
    }
}
